import request from '@/utils/request'
//仓库列表
export function WarehouseList(data) {
    return request({
        url: '/api/Warehouse/index',
        method: 'post',
        data
    })
}
//获取仓库详情
export function Warehouseedit(data) {
    return request({
        url: '/api/Warehouse/edit',
        method: 'post',
        data
    })
}
//仓库添加
export function Warehousestore(data) {
    return request({
        url: '/api/Warehouse/store',
        method: 'post',
        data
    })
}
//仓库信息修改
export function Warehouseupdate(data) {
    return request({
        url: '/api/Warehouse/update',
        method: 'post',
        data
    })
}
//仓库删除
export function Warehousedestroy(data) {
    return request({
        url: '/api/Warehouse/destroy',
        method: 'post',
        data
    })
}
//仓库删除
export function selectChooseWarehouse(data) {
    return request({
        url: '/api/Warehouse/selectChooseWarehouse',
        method: 'post',
        data
    })
}

//区域列表
export function Warehousearea(data) {
    return request({
        url: '/api/Warehousearea/index',
        method: 'post',
        data
    })
}
//区域添加
export function Warehouseareastore(data) {
    return request({
        url: '/api/Warehousearea/store',
        method: 'post',
        data
    })
}
//区域修改
export function Warehouseareaupdate(data) {
    return request({
        url: '/api/Warehousearea/update',
        method: 'post',
        data
    })
}
//区域删除
export function Warehouseareadestroy(data) {
    return request({
        url: '/api/Warehousearea/destroy',
        method: 'post',
        data
    })
}
//区域搜索下拉框
export function selectChooseWarehousearea(data) {
    return request({
        url: '/api/Warehousearea/selectChooseWarehousearea',
        method: 'post',
        data
    })
}

//	货架列表
export function shelvesList(data) {
    return request({
        url: '/api/shelves/index',
        method: 'post',
        data
    })
}
//货架添加
export function shelvesstore(data) {
    return request({
        url: '/api/shelves/store',
        method: 'post',
        data
    })
}
//货架修改
export function shelvesupdate(data) {
    return request({
        url: '/api/shelves/update',
        method: 'post',
        data
    })
}
//货架删除
export function shelvesdestroy(data) {
    return request({
        url: '/api/shelves/destroy',
        method: 'post',
        data
    })
}
//货架搜索下拉框
export function selectChooseShelves(data) {
    return request({
        url: '/api/shelves/selectChooseShelves',
        method: 'post',
        data
    })
}

//区域设置货架列表
export function bindAreaShelvesList(data) {
    return request({
        url: '/api/Warehousearea/bindAreaShelvesList',
        method: 'post',
        data
    })
}
//删除区域设置货架
export function relieveBindAreaShelves(data) {
    return request({
        url: '/api/Warehousearea/relieveBindAreaShelves',
        method: 'post',
        data
    })
}
//区域设置货架
export function bindAreaShelves(data) {
    return request({
        url: '/api/Warehousearea/bindAreaShelves',
        method: 'post',
        data
    })
}

//商品设置货架列表
export function bindGoodsShelvesList(data) {
    return request({
        url: '/smkapi/goods/bindGoodsShelvesList',
        method: 'post',
        data
    })
}
//删除商品设置货架
export function relieveBindGoodsShelves(data) {
    return request({
        url: '/smkapi/goods/relieveBindGoodsShelves',
        method: 'post',
        data
    })
}
//商品设置货架
export function bindGoodsShelves(data) {
    return request({
        url: '/smkapi/goods/bindGoodsShelves',
        method: 'post',
        data
    })
}


//仓库筛选
export function selectWarehouseData(data) {
    return request({
        url: '/smkapi/option/selectWarehouseData',
        method: 'post',
        data
    })
}
//根据仓库获取区域
export function selectWarehouseAreaData(data) {
    return request({
        url: '/smkapi/option/selectWarehouseAreaData',
        method: 'post',
        data
    })
}
//获取区域绑定货架
export function selectBindShelvesData(data) {
    return request({
        url: '/smkapi/option/selectBindShelvesData',
        method: 'post',
        data
    })
}